<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.add_photo_description" ValidateRequest="false"  CodeFile="add_photo_description.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<form id="uploadImageForm" action="" method="post" runat="server">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" height="100%">
		<tr>
			<td colspan="3">
				<table cellspacing="0" cellpadding="0" width="100%" border="0" class="page_title"> <!-- width="526" -->
					<tr>
						<td><asp:literal id="litTitle" runat=server>Upload New Photos</asp:literal></td>
						<td align="right"><asp:hyperlink id="hlBackToGroup" runat="server" cssclass="white_link"></asp:hyperlink></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td valign="top" width="769" height="100%" class="main_table_border">
				<div class="content">
					<table cellSpacing="0" cellPadding="0" width="739" border="0" class="main_text"> <!-- width="526" -->
						<tr>
							<td align="left"><b><asp:literal id="litShare" runat=server>Share your photos with people in your 2Bmates Network. 
									Let them recognize you and know who you are!</asp:literal></b></td>
						</tr>
						<tr>
							<td align="center" height="16"><IMG class="spacer_line" height="1" src="images/spacer.gif" width="100%"></td>
						</tr>
						<tr>
							<td><asp:literal id="litImageFormat" runat=server>Acceptable format: JPG, GIF, or PNG with Maximum size of 500K. 
								Please respect our <A href="photo_policy.aspx" class="main_text">photo policy</A> and do not 
								upload photos containing nudity, violent or offensive material, or copyrighted 
								images.</asp:literal></td>
						</tr>
						<tr>
							<td class="small" vAlign="top" width="100%" colSpan="2"><br />
								<table cellSpacing="3" cellPadding="0" border="0">
									<tr>
										<td id="error" vAlign="top" align="left"><asp:validationsummary id="ValidationSummary1" runat="server" ForeColor="#F04C03" DisplayMode="List" Width="248px" CssClass="val_summary" Height="32px"></asp:validationsummary></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td><INPUT class="mail_field" id="fldFileUpload" style="WIDTH: 273px; HEIGHT: 18px" type="file"
									size="30" name="fldFileUpload" runat="server"> 
									<asp:button id="btnUpload" runat="server" CssClass="btn" Text="Upload"  onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" causesvalidation=true onclick="btnUpload_Click"></asp:button><asp:customvalidator id="valFileFormat" runat="server" ErrorMessage="Please choose a file in the correct format"
									Display="None" ControlToValidate="fldFileUpload"></asp:customvalidator><asp:customvalidator id="valFileSize" runat="server" errormessage="Maximum file size must be 500K.Please choose another file"
									display="None" controltovalidate="fldFileUpload"></asp:customvalidator><asp:requiredfieldvalidator id="rvFldFileUpload" runat="server" errormessage="Please browse an image" display="None"
									controltovalidate="fldFileUpload"></asp:requiredfieldvalidator></td>
						</tr>
					</table>
				</div>
			</td>
		<!--
			<td width="11"><IMG height="4" alt="" src="images/spacer.gif" width="1" border="0"></td>
			<td width="202">
				<table height="100%" cellSpacing="1" cellPadding="0" width="202" bgColor="#737fb8" border="0">
					<tr>
						<td class="small" width="10">&nbsp;</td>
						<td class="advertisement" vAlign="top" width="409" bgColor="#ffffff"><b>Advertisement:</b></td>
					</tr>
				</table>
			</td>
		</tr>
		-->
		<tr>
			<td height="8" colSpan="3" class="small">&nbsp;</td>
		</tr>
		<tr>
			<td class="page_title" colspan="3"><asp:literal id="litAddEdit" runat="server" text="Add"></asp:literal>&nbsp;<asp:label id="lblPhotoDesc" runat=server>Photo Description</asp:label></td>
		</tr>
		<tr>
			<td valign="top" colSpan="3" width="100%" height="100%" class="main_table_border">
				<div class="content">
					<table cellSpacing="0" cellPadding="0" width="739" border="0" class="main_text"> <!-- width="526" -->
						<tr>
							<td class="small" height="7" valign="top">&nbsp;</td>
						</tr>								
						<tr>
							<td vAlign="top"><asp:image id="imgPhotoBig" runat="server" CssClass="small_image"></asp:image><asp:label id="lblErrorMessage" runat="server" Visible="False"> Please choose an image first.</asp:label></td>
						</tr>
						<tr>
							<td vAlign="top"><br /><asp:textbox id="txtDescription" runat="server" Width="192px" CssClass="mail_field" MaxLength="50"
									ToolTip="Add Description"></asp:textbox></td>
						</tr>
						<tr>
							<td vAlign="top"><br /><asp:button id="btnAdd" runat="server" CssClass="btn" Text="Add" CausesValidation="False"  onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="btnAdd_Click"></asp:button><asp:button id="btnUpdate" visibile=false runat="server" cssclass="btn" text="Update Description" causesvalidation="False"  width="130" onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="btnAdd_Click"></asp:button></td>
						</tr>
						<tr>
							<td height="20">&nbsp;</td>
						</tr>
					</table>
				</div>	
			</td>
		</tr>
	</table>
</form>
